import { Modal } from 'antd';
import { useQRCodeModalDow } from '@/store/adapter/useGlobalStatus';
// import { clearQrCode } from '@/store/adapter/qrCodeStatus';
import Wrapper from './Wrapper';
import styles from './index.less';

const QrCodeEditModal = () => {
  const { qrcodeMobalDow, closeQrcodeMobalDow } = useQRCodeModalDow()
  return (
    <Modal
      footer={null}
      destroyOnClose
      closable={false}
      className={styles.QrCodeEditModal}
      open={qrcodeMobalDow}
      width={713}
      onCancel={() => {
        closeQrcodeMobalDow();
      }}
      centered={true}
      maskClosable={false}
      getContainer={document.getElementById('oneRoot') as HTMLElement}
    >
      <Wrapper />
    </Modal>
  );
};

export default QrCodeEditModal;
